$btn-prefix-cls: 'a-btn';

.#{$btn-prefix-cls}{
    display: inline-block;
    margin-bottom: 0;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    padding: 0 15px;
    font-size: 12px;
    border-radius: 4px;
    height: 28px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    position: relative;
    color: rgba(0, 0, 0, 0.65);
    background-color: #fff;
    border-color: #d9d9d9;

    &:hover, &:focus {
        color: #108ee9;
        background-color: #fff;
        border-color: #108ee9;
        outline:0;
    }
    @at-root {
        &-default{
           height: 28px;
           line-height: 28px;
        }

        &-small{
           height: 20px;
           line-height: 20px;
        }

        &-large{
           height: 40px;
           line-height: 40px;
        }

        &-primary {
            color: #fff;
            background-color: #108ee9;
            border-color: #108ee9;

            &:hover, &:focus {
                color: #fff;
                background-color: #49a9ee;
                border-color: #49a9ee;
            }
        }

        &-clicked:after {
            content: '';
            position: absolute;
            top: 1px;
            left: 1px;
            bottom: 1px;
            right: 1px;
            border-radius: 4px;
            border: 0 solid #108ee9;
            opacity: 0.4;
            animation: buttonEffect .4s;
            display: block;
        }
        @keyframes buttonEffect {
            to {
                opacity: 0;
                top: -6px;
                left: -6px;
                bottom: -6px;
                right: -6px;
                border-width: 6px;
            }
        }
    }
}

